package com.yanchangapp.ui.activity.purchase;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.ImageView;
import android.widget.TextView;

import com.yanchangapp.R;
import com.zxl.baselib.ui.base.BaseActivity;
import com.zxl.baselib.ui.base.BasePresenter;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * 新建采购订单路径选择...
 */
public class POrderPathActivity extends BaseActivity {

    @BindView(R.id.ivToolbarNavigation)
    ImageView ivToolbarNavigation;
    @BindView(R.id.tvToolbarTitle)
    TextView tvToolbarTitle;
    @BindView(R.id.btnJumpPurchase)
    Button btnJumpPurchase;
    @BindView(R.id.btnJumpOrder)
    Button btnJumpOrder;

    @Override
    protected void init() {

    }

    public static void show(Activity activity){
        Intent intent = new Intent(activity,POrderPathActivity.class);
        activity.startActivity(intent);
    }

    @Override
    protected int provideContentViewId() {
        return R.layout.activity_porder_path;
    }

    @Override
    protected BasePresenter createPresenter() {
        return null;
    }

    @Override
    protected void initView(Bundle savedInstanceState) {
        tvToolbarTitle.setText("新建采购订单");
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initListener() {

    }

    @OnClick({R.id.ivToolbarNavigation, R.id.btnJumpPurchase, R.id.btnJumpOrder})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.ivToolbarNavigation:
                finish();
                break;
            case R.id.btnJumpPurchase:
                POrderCntListActivity.show(POrderPathActivity.this);
                break;
            case R.id.btnJumpOrder:
                POrderCreateActivity.show(POrderPathActivity.this);
                break;
        }
    }
}
